]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Stop bridging pad changes to OLED updates
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 30 Apr 2025 09:13:09 +0000 (11:13 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 27 Jun 2025 10:55:40 +0000 (10:55 +0000)
The small OLEDs alongside pad buttons in Wacom Intuos 4 models will
stop being supported. See
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/416

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3706>

data/dbus-interfaces/org.gnome.SettingsDaemon.Wacom.xml [deleted file]
data/gnome-shell-dbus-interfaces.gresource.xml
js/ui/windowManager.js

diff --git a/data/dbus-interfaces/org.gnome.SettingsDaemon.Wacom.xml b/data/dbus-interfaces/org.gnome.SettingsDaemon.Wacom.xml
deleted file mode 100644 (file)
index 1370214..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<node>
-<interface name="org.gnome.SettingsDaemon.Wacom">
-  <method name="SetGroupModeLED">
-    <arg name="device_path" direction="in" type="s"/>
-    <arg name="group" direction="in" type="u"/>
-    <arg name="mode" direction="in" type="u"/>
-  </method>
-  <method name="SetOLEDLabels">
-    <arg name="device_path" direction="in" type="s"/>
-    <arg name="labels" direction="in" type="as"/>
-  </method>
-  </interface>
-</node>
index 5005aa58d3a68a3e022cfca1346db14e5b80a2aa..69ce52927ae4d306f4b1e89b46354042a1ab595a 100644 (file)
@@ -39,7 +39,6 @@
     <file preprocess="xml-stripblanks">org.gnome.SettingsDaemon.Color.xml</file>
     <file preprocess="xml-stripblanks">org.gnome.SettingsDaemon.Power.Keyboard.xml</file>
     <file preprocess="xml-stripblanks">org.gnome.SettingsDaemon.Rfkill.xml</file>
-    <file preprocess="xml-stripblanks">org.gnome.SettingsDaemon.Wacom.xml</file>
     <file preprocess="xml-stripblanks">org.gnome.Shell.AudioDeviceSelection.xml</file>
     <file preprocess="xml-stripblanks">org.gnome.Shell.CalendarServer.xml</file>
     <file preprocess="xml-stripblanks">org.gnome.Shell.ClocksIntegration.xml</file>
index 05aaeb24018789d3be7b193ec5a93ff390de130f..c05a52ea15e2514459b6a6718e82acea97a14658 100644 (file)
@@ -22,7 +22,6 @@ import * as SwitchMonitor from './switchMonitor.js';
 import * as IBusManager from '../misc/ibusManager.js';
 import * as WorkspaceAnimation from './workspaceAnimation.js';
 
-import {loadInterfaceXML} from '../misc/fileUtils.js';
 import * as Main from './main.js';
 
 export const SHELL_KEYBINDINGS_SCHEMA = 'org.gnome.shell.keybindings';
@@ -43,12 +42,6 @@ const ONE_SECOND = 1000; // in ms
 
 const MIN_NUM_WORKSPACES = 2;
 
-const GSD_WACOM_BUS_NAME = 'org.gnome.SettingsDaemon.Wacom';
-const GSD_WACOM_OBJECT_PATH = '/org/gnome/SettingsDaemon/Wacom';
-
-const GsdWacomIface = loadInterfaceXML('org.gnome.SettingsDaemon.Wacom');
-const GsdWacomProxy = Gio.DBusProxy.makeProxyWrapper(GsdWacomIface);
-
 const WINDOW_DIMMER_EFFECT_NAME = 'gnome-shell-window-dimmer';
 
 Gio._promisify(Shell, 'util_start_systemd_unit');
@@ -897,26 +890,6 @@ export class WindowManager {
             Main.osdWindowManager.show(monitorIndex, icon, label, null);
         });
 
-        this._gsdWacomProxy = new GsdWacomProxy(Gio.DBus.session,
-            GSD_WACOM_BUS_NAME, GSD_WACOM_OBJECT_PATH,
-            (proxy, error) => {
-                if (error)
-                    log(error.message);
-            });
-
-        global.display.connect('pad-mode-switch', (display, pad, _group, _mode) => {
-            let labels = [];
-
-            // FIXME: Fix num buttons
-            for (let i = 0; i < 50; i++) {
-                let str = display.get_pad_action_label(pad, Meta.PadActionType.BUTTON, i);
-                labels.push(str ?? '');
-            }
-
-            this._gsdWacomProxy?.SetOLEDLabelsAsync(
-                pad.get_device_node(), labels).catch(logError);
-        });
-
         global.display.connect('init-xserver', (display, task) => {
             IBusManager.getIBusManager().restartDaemon(['--xim']);